<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title>Market Grabber - Login</title>
</h:head>

<h:body>
	<ui:composition template="./template.xhtml">
		<ui:define name="siteheader">
                User Selection
        </ui:define>
		<ui:define name="leftmenu">
			&nbsp;
		</ui:define>

		<ui:define name="maincontent">
			<h:form>
				<p>Select your role: 
				<h:selectOneListbox id="username" value="#{user.name}">
					<f:selectItem id="requester" itemLabel="Requester" itemValue="Requester" />
					<f:selectItem id="procurement" itemLabel="Procurement" itemValue="Procurement" />
					<f:selectItem id="warehouse" itemLabel="Warehouse" itemValue="Warehouse" />
				</h:selectOneListbox>
				</p>
				<h:commandButton value="Login" action="#{user.login}" />
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>